import advServer from '@src/request/advServer.js'

export const add = formData => {
  return advServer.postForm('/adv', formData)
};

export const edit = formData => {
  return advServer.putForm('/adv', formData)
};


export const get = id => {
  return advServer.get('/adv/' + id)
};

export const page = query => {
  return advServer.get('/adv', { params: query })
};